#ifndef __GVAR_H__
#define __GVAR_H__

#define MAX_SSID_LEN 128
#define MAX_PWD_LEN 128
#define MAX_MAC_LEN 36

typedef struct {
    int wifi_id;
    int wifi_matser_id;
    char wifi_ssid[MAX_SSID_LEN];
    char wifi_password[MAX_PWD_LEN];
    char wifi_mac[MAX_MAC_LEN];
    double wifi_longitude;
    double wifi_latitude;
    int wifi_area_id;
} WifiInfo;

typedef struct {
	int db_id;
	WifiInfo wifiinfo;
}DBWifiInfo;

typedef struct {
    char dev_mac[MAX_MAC_LEN];
    char dev_wifi_ssid[MAX_SSID_LEN];
    char dev_wifi_pwd[MAX_PWD_LEN];
    int dev_master_id;
} DevConfig;




DevConfig g_dev_conf;

#endif
